<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
<!-- 查询框开始 -->
<div class="table-responsive" style="display: none;">
<form class="form-inline" method="GET" action="<?php echo $this->input->server('REQUEST_URI'); ?>" name="queryForm" id="queryForm">
<input type="hidden" name="c" id="c" value="<?php echo $this->input->get('c') ?>">
<input type="hidden" name="m" id="m" value="<?php echo $this->input->get('m') ?>">
  <div class="form-group">
    <label for="year">所属年份：</label>
    <select class="form-control" id="year" name="year">
      <option value="">请选择</option>
    </select>
  </div>
 <div class="form-group">
  <button type="submit" class="btn btn-default btn-primary">查询</button>
  </div>
</form>
</div>
<div class="" style="margin-top: 10px;">
  <table class="table table-hover table-bordered">
    <thead>
      <tr>
        <th class="bg-primary text-center">申报序号</th>
        <th class="bg-primary text-center">专营店年度额度</th>
        <th class="bg-primary text-center">操作</th>
      </tr>
    </thead>
    <tbody>
    <?php
    foreach ($procList as $value) {
    ?>
      <tr>
        <td class="text-center"><?php echo $value['id']; ?></td>
        <td class="text-center"><?php echo $value['yearMoney'];?></td>
        <td class="text-center">
          <?php if ($this->auth->isSpreadSettleEdit($value)) {?>
        	<a class="btn btn-default btn-sm buttona" role="button" href="<?php echo printUrl('SpreadSettle','storeEdit', array('procId'=>$value['id'])); ?>">发布/修改</a><br>
        	<?php } ?>
        	<?php if ($this->auth->isSpreadSettleCheck($value)) {?>
        	<a class="btn btn-default btn-sm buttona" role="button" href="<?php echo printUrl('SpreadSettle','check', array('procId'=>$value['id'])); ?>">&nbsp;&nbsp;&nbsp;&nbsp;查看&nbsp;&nbsp;&nbsp;&nbsp;</a>
          	<?php } ?>
          </td>
        </tr>
      <?php } ?>
      </tbody>
    </table>
  </div>
<script type="text/javascript">
  $(function(){
    loadYearList('year',<?=$year ? $year : 0?>);
  });
</script>
  <?php $this->load->view('common/foot');?>